﻿/*
 * Copyright (C) 2012, Jesus Requejo <jesus.requejo@gmail.com> 
 * Licensed under Microsoft Public License (Ms-PL)
 * http://www.microsoft.com/en-us/openness/licenses.aspx#MPL
*/

namespace Infrastructure {

   using System;
   using System.Collections.Generic;
   using System.Linq;
   using System.Text;

   public enum StartupPermissions {
      Everybody,
      Admins,
      Authorized
   }

   public enum ServiceManagerPermissions {
      Nobody,
      Admins,
      Authorized
   }

   public class PermissionsConfiguration {

      public StartupPermissions StartupPermissions { get; set; }
      public ServiceManagerPermissions ServiceManagerPermissions { get; set; }
      public IList<WindowsUser> AuthorizedStartupUsers { get; set; }
      public IList<WindowsUser> AuthorizedServiceManagerUsers { get; set; }

      public PermissionsConfiguration() {
         AuthorizedStartupUsers = new List<WindowsUser>();
         AuthorizedServiceManagerUsers = new List<WindowsUser>();
      }
   }
}
